<?php
namespace App\Services\Fund;
use App\Services\Fund\CurrencyUnfreezeLog\CurrencyUnfreezeLogLogic;
/**
 * 数字币冻结日志
 * Class CurrencyUnfreezeLog
 * @package App\Services\Fund
 */
class CurrencyUnfreezeLog
{
     // 获取所数字币解冻日志(分页)
    public function list($data): array
    {
         $data = init_array($data,['page'=>'1', 'list_rows'=>'', 'keywords'=>'', 'startTime'=>'', 'endTime'=>'']);
        if (empty($data)) {
            return null_data($data,"参数不能为空！");
        }
        return (new CurrencyUnfreezeLogLogic())->list($data);
    }
    // 获取某些user_ids的的数字币解冻日志(分页)
    public function listByUserIds($data): array
    {
         $data = init_array($data,['page', 'list_rows','user_ids']);
        if (empty($data)) {
            return null_data($data,"参数不能为空！");
        }
        ValidateCurrencyUnfreezeLog::checkValidate($data, ['page', 'list_rows','user_ids']);
        return (new CurrencyUnfreezeLogLogic())->listByUserIds($data);
    }
    // 获取某个冻结日志的数字币解冻日志
    public function listByFreezeId($data): array
    {
         $data = init_array($data,['page'=>'1', 'list_rows'=>'', 'freeze_log_id'=>' ']);
        if (empty($data)) {
            return null_data($data,"参数不能为空！");
        }
        ValidateCurrencyUnfreezeLog::checkValidate($data, ['page', 'list_rows','freeze_log_id']);
        return (new CurrencyUnfreezeLogLogic())->listByFreezeId($data);
    }

}